public class Dog extends Animal{
    float weight;
    void Bark(){
        System.out.println(name + "汪汪汪~~~");
    }

    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.name = "小七";
        dog.age = 3;
        dog.weight = 5;
        dog.eat();
        dog.sleep();
        dog.Bark();
    }
}

